package com.test.springdata.dao;

import com.test.springdata.entities.Person;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

/**
 * @author lzy
 * @version v1.0
 * Create DateTime: 2018/10/31 9:30
 */
public class PersonRepositoryImpl implements PersonDao {
    @PersistenceContext
    private EntityManager entityManager;

    @Override
    public void test() {
        Person person = entityManager.find(Person.class, 11);
        System.out.println("-->" + person);
    }
}
